package com.zxy.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zxy.pojo.dto.CourseContractDTO;
import com.zxy.pojo.dto.PageDTO;
import com.zxy.pojo.entity.CourseContract;
import com.zxy.pojo.vo.CourseListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ContractMapper extends BaseMapper<CourseContract> {
    //分页查询
    // Mapper接口方法定义
    Page<CourseContractDTO> listContract(@Param("page") Page<CourseContract> page, @Param("pageDTO") PageDTO pageDTO);

    //条件查询课程和学科信息
    List<CourseListVo> listSelectCourse(@Param("subject") String subject,@Param("courseId") Long courseId);

    //渠道来源
    List<CourseListVo> listSelectActivity(@Param("channel") String channel);

    //根据id回显数据
    CourseContract detail(@Param("id") Long id);
}
